/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年7月31日 下午3:55:02
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.woniu.dao;

import java.sql.SQLException;
import java.util.List;

import com.woniu.domain.Category;
import com.woniu.domain.Goods;

/**
 * @author Administrator
 *
 */
public interface CategoryDao {

	/**
	 * @return
	 */
	List<Category> getCategoryInfo() throws SQLException;

	/**
	 * @param cId
	 * @param currentPage
	 * @param pageSize
	 * @return
	 */
	List<Goods> listGoodsByCategory(Integer cId, Integer currentPage, int pageSize) throws SQLException;

	/**
	 * @param cId
	 * @return
	 */
	int getGoodsCount(Integer cId) throws SQLException;

	/**
	 * @param cId
	 * @return
	 */
	Category getGoodsCategory(Integer cId) throws SQLException;

	/**
	 * @param gId
	 * @return
	 */
	Goods getGoodsInfo(Integer gId) throws SQLException;

}
